package cn.iocoder.lw.module.core.controller.admin.project.vo;

import cn.iocoder.lw.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.lw.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 核心项目分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoreProjectPageReqVO extends PageParam {

    @Schema(description = "项目名称", example = "示例项目")
    private String name;

    @Schema(description = "项目所属区域", example = "110101")
    private String areaId;

    @Schema(description = "项目联系人", example = "张三")
    private String contactName;

    @Schema(description = "联系人手机号", example = "13800138000")
    private String contactMobile;

    @Schema(description = "代理商名称", example = "示例代理商")
    private String agentName;

    @Schema(description = "服务商名称", example = "示例服务商")
    private String serviceProviderName;

    @Schema(description = "项目类型", example = "集中式")
    private String projectType;

    @Schema(description = "平台类型", example = "平台SAAS")
    private String platformType;

    @Schema(description = "负责人用户编号", example = "1")
    private Long ownerUserId;

    @Schema(description = "项目状态", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "维保有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] maintenanceTime;

    @Schema(description = "流量有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] trafficTime;

}